import request from '@/utils/request'

// 查询搜索平台人才列表
export function listSearch(query) {
  return request({
    url: '/enterprise/search/list',
    method: 'get',
    params: query
  })
}

// 查询搜索平台人才详细
export function getSearch(resumeId) {
  return request({
    url: '/enterprise/search/' + resumeId,
    method: 'get'
  })
}

// 新增搜索平台人才
export function addSearch(data) {
  return request({
    url: '/enterprise/search',
    method: 'post',
    data: data
  })
}

// 修改搜索平台人才
export function updateSearch(data) {
  return request({
    url: '/enterprise/search',
    method: 'put',
    data: data
  })
}

// 删除搜索平台人才
export function delSearch(resumeId) {
  return request({
    url: '/enterprise/search/' + resumeId,
    method: 'delete'
  })
}

// 导出搜索平台人才
export function exportSearch(query) {
  return request({
    url: '/enterprise/search/export',
    method: 'get',
    params: query
  })
}